package cn.bdqn.service.impl;

import cn.bdqn.mapper.BrandMapper;
import cn.bdqn.pojo.Brand;
import cn.bdqn.service.BrandService;
import cn.bdqn.utils.RedisUtil;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class BrandServiceImpl implements BrandService {
    @Resource
    BrandMapper brandMapper;
    @Resource
    RedisUtil redisUtil;
    @Override
    public List<Brand> selectList() {
        List<Brand> o = ( List<Brand>)redisUtil.get(null);
        if (o==null){

        }
        return brandMapper.selectLiebiao();
    }
}
